export default {
  loginApi: () => Promise.resolve({data: {
    accessToken:
          "eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJhZG1pbiIsImp0aSI6IjE2YWJkNTlkOTAxNzQwZDliYmI3ZjczODBhZDkyNzNhIiwidXNlcklkIjoyLCJ1c2VybmFtZSI6ImFkbWluIiwiZGVwdElkIjoxLCJkYXRhU2NvcGUiOjEsImF1dGhvcml0aWVzIjpbIlJPTEVfQURNSU4iXSwiZXhwIjoxNjkxMTAzMzgyfQ.P4cuIfmPepl3HuguhMS7NXn5a7IUPpsLbmtA_rHOhHk",
    tokenType: "Bearer",
    refreshToken: null,
    expires: null,
  }}),

  logoutApi: () => Promise.resolve({}),

  getUserInfoApi: () => Promise.resolve({data: {
    userId: 2,
    nickname: "系统管理员",
    username: "admin",
    avatar:
      "https://oss.youlai.tech/youlai-boot/2023/05/16/811270ef31f548af9cffc026dfc3777b.gif",
    roles: ["ADMIN"],
    perms: [
      "sys:menu:delete",
      "sys:dept:edit",
      "sys:dict_type:add",
      "sys:dict:edit",
      "sys:dict:delete",
      "sys:dict_type:edit",
      "sys:menu:add",
      "sys:user:add",
      "sys:role:edit",
      "sys:dept:delete",
      "sys:user:edit",
      "sys:user:delete",
      "sys:user:reset_pwd",
      "sys:dept:add",
      "sys:role:delete",
      "sys:dict_type:delete",
      "sys:menu:edit",
      "sys:dict:add",
      "sys:role:add",
    ],
  }}),

  getMicroAppConfig: () => Promise.resolve({
    data: [
      {
        name: 'app1',
        entry: '//localhost:3001',
        activeRule: '/micro/one',
        container: '#app1'
      },
      {
        name: 'app2',
        entry: '//localhost:3002',
        activeRule: '/micro/two',
        container: '#app2'
      }
    ]
  })
}